package com.mf.entity.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * @Author: lmf
 * @Create: 2024/7/19 17:22
 * Description:
 */

public class PagingRequest {
    @Schema(description = "页码", example = "1")
    @NotNull(message = "页码不能为空")
    @Size(min = 1, message = "页码不能小于1")
    private Integer pageNum;
    @Schema(description = "每页数量", example = "10")
    @NotNull(message = "每页数量不能为空")
    @Size(min = 1, message = "每页数量不能小于1")
    private Integer pageSize;
}
